package fun.tan90.solon.entity.dataobject.listener;

import com.mybatisflex.annotation.InsertListener;
import fun.tan90.solon.entity.dataobject.BinlogMaster;

import java.util.Date;

/**
 * description TODO
 * company 铁人科技
 *
 * @author 陈浩杰
 * @date 2023/9/5 17:40
 */
public class BinlogMasterOnInsertListener implements InsertListener {
    @Override
    public void onInsert(Object entity) {
        BinlogMaster binlogMaster = (BinlogMaster) entity;
        binlogMaster.setCreateId("");
        binlogMaster.setCreateTime(new Date());
    }
}
